home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 3.iso
/
dist
/
fw_squid.idb
/
etc
/
init.d
/
fw_squid.z
/
fw_squid
Wrap
Text File
|
2002-07-08
|
658b
|
46 lines
#!/bin/sh
#
# Startup script for squid
#
# $Id: squid,v 1.5 1998/11/18 10:56:56 achimg Exp $
# (c) 2000 SGI/Achim Gorski <gorski@sgi.com>
prefix=/usr/freeware/squid
exec_prefix=${prefix}
PATH=${exec_prefix}/bin:/bin:/usr/bin
export PATH
CONFIG=/etc/config
IS_ON=/etc/chkconfig
if $IS_ON verbose ; then
ECHO=echo
else # For a quiet startup and shutdown
ECHO=:
fi
case "$1" in
'stop')
if $IS_ON fw_squid ; then
$ECHO 'Stopping squid.'
squid -k shutdown
sleep 10
$ECHO
fi
;;
'start')
if $IS_ON fw_squid ; then
$ECHO 'Starting squid.'
RunCache.socks5 &
$ECHO
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
exit 0